package data;

import java.util.ArrayList;
import java.util.Date;

public class Record {
	
	/** valor name */
	public static final String NAME = "name";
	
	/** valor minimum rate */
	public static final String MIN = "name";
	
	/** valor maximum rate */
	public static final String MAX = "name";
	
	/** valor current rate */
	public static final String CURR = "name";
	
	/** valor time stamp */
	public static final String DATE = "name";
	
	/** valor symbol name */
	public static final String SYMBOL = "name";
	
	/** valor opening rate */
	public static final String OPEN = "name";
	
	/** valor closing rate */
	public static final String CLOSE = "name";
	
	
	public String getName() {
		return mName;
	}
	public void setName(String Name) {
		this.mName = Name;
	}
	public String getSymbol() {
		return mSymbol;
	}
	public void setSymbol(String Symbol) {
		this.mSymbol = Symbol;
	}
	public float getOpeningRate() {
		return mOpeningRate;
	}
	public void setOpeningRate(float OpeningRate) {
		this.mOpeningRate = OpeningRate;
	}
	public float getClosingRate() {
		return mClosingRate;
	}
	public void setClosingRate(float ClosingRate) {
		this.mClosingRate = ClosingRate;
	}
	public float getCurrentRate() {
		return mCurrentRate;
	}
	public void setCurrentRate(float CurrentRate) {
		this.mCurrentRate = CurrentRate;
	}
	public float getMaxRate() {
		return mMaxRate;
	}
	public void setMaxRate(float MaxRate) {
		this.mMaxRate = MaxRate;
	}
	public float getMinRate() {
		return mMinRate;
	}
	public void setMinRate(float MinRate) {
		this.mMinRate = MinRate;
	}
	public Date getTimeStamp() {
		return mTimeStamp;
	}
	public void setTimeStamp(Date TimeStamp) {
		this.mTimeStamp = TimeStamp;
	}
	
	@Override
	public String toString() {
		ArrayList<String> l = new ArrayList<String>();
		l.add(this.mName);
		l.add(this.mSymbol);
		l.add(Float.toString(this.mOpeningRate));
		l.add(Float.toString(this.mClosingRate));
		l.add(Float.toString(this.mCurrentRate));
		l.add(Float.toString(this.mMaxRate));
		l.add(Float.toString(this.mMinRate));
		l.add(this.mTimeStamp.toString());
		return l.toString();
	}
	
	private String mName;
	private String mSymbol;
	private float mOpeningRate;
	private float mClosingRate;
	private float mCurrentRate;
	private float mMaxRate;
	private float mMinRate;
	private Date mTimeStamp;
	
}
